import Vue from 'vue'
import Vuex from 'vuex'
import persisted from 'vuex-persistedstate'

Vue.use(Vuex)
Vue.use(persisted)

export default new Vuex.Store({
  state: {
    user:{},
    content:'',
    color:''
  },
  mutations: {
    userChange(state,obj){
      state.user=obj
    },
    changeCont(state,val){
      state.content=val
    },
    changeCol(state,val){
      state.color=val
    }
  },
  actions: {
  },
  modules: {
  },
  plugins:[persisted()]
})
